﻿using System;

namespace NATP2P.UDPNat
{
    /// <summary>
    /// Represents an event with  event data.
    /// </summary>
    public class NewDatagramEventArgs : EventArgs
    {

        /// <summary>
        /// new data coming 
        /// </summary>
        /// <param name="buffer"></param>
        public NewDatagramEventArgs(byte[] buffer)
        {
            data = buffer;
        }
        private byte[] data;
        /// <summary>
        /// 
        /// </summary>
        public byte[] Data
        {
            get { return data; }
            set { data = value; }
        }
    }
}
